import request from "@/utils/request"

// 查询备料单据(PMC)
export function demandList(data) {
  return request({
    baseURL: window.APP_GETEWAY.pms,
    url: `/v1/purchase-demand/purchase-demand-sku/demand-list`,
    method: "post",
    data,
  })
}
// 批量确认状态
export function batchUpdateConfirmStatus(data) {
  return request({
    url: `/v1/plan/stocking-analysis/batch-update-confirm-status`,
    method: "post",
    data,
  })
}
// 更新计划预测日均
export function updatePlanAverageDailySales(data) {
  return request({
    url: `/v1/plan/stocking-analysis/update-plan-average-daily-sales`,
    method: "post",
    data,
  })
}
// 全量执行备货分析
export function fullAnalysis(data) {
  return request({
    url: `/v1/plan/stocking-analysis/full-analysis`,
    method: "post",
    data,
  })
}

// 批量设置手动编辑
export function batchSettingManualEdit(data) {
  return request({
    url: `/v1/plan/stocking-analysis/batch-setting-manual-edit`,
    method: "post",
    data,
  })
}
// 历史数据查询
export function historyList(data) {
  return request({
    url: `/v1/plan/history/list`,
    method: "post",
    data,
  })
}